// wxapi.js
import wx from 'weixin-js-sdk'
const wxApi = {
 /**
 * [isweixin 判断是否微信浏览器]
 */
 isweixin () {
  const ua = window.navigator.userAgent.toLowerCase()
  if (ua.match(/MicroMessenger/i) == 'micromessenger') {
   return true
  } else {
   this.$router.push({path: '/wxkj/isnotWechat'})
   return false
  }
 }
}
export default wxApi